package com.carrental.crm.client;

import com.carrental.common.result.Result;
import com.carrental.crm.vo.VehicleVO;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 租赁服务客户端
 * 用于远程调用car-rental服务
 */
@FeignClient(name = "car-vehicle")
public interface VechicleClient {

    @ApiOperation("根据ID获取车辆详情")
    @GetMapping("/vehicles/{id}")
    Result<VehicleVO> getVehicleById(
            @ApiParam("车辆ID") @PathVariable Long id);
}